﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StoreApp.Models;

namespace StoreApp.DAL
{
    public class ProductRepository : IProductRepository
    {
        StoreAppDbContext context;

        public ProductRepository(StoreAppDbContext context)
        {
            this.context = context;
        }

        public IQueryable<Product> All
        {
            get { return context.Products; }
        }

    }
}